package org.aspect.service.impl;

import org.aspect.interfaces.Authority;
import org.aspect.service.CheckPermissions;
import org.springframework.stereotype.Service;

/**
 * 权限校验功能逻辑处理
 *
 * @author LiKun
 * @date 2021/8/20 14:01
 */
@Service("checkPermissions")
public class CheckPermissionsImpl implements CheckPermissions {
    @Override
    public boolean check(Authority authority, String target) {
        return target.equalsIgnoreCase(authority.getAuthority());
    }
}
